<?php
class c_public_function extends CI_Controller {
	function __construct(){
		parent::__construct();
	}
	function index(){
		$task = secure_post('task');
		switch($task){
			case "loket":
				$this->_loket();
				break;
			default : 
				redirect(base_url());
		}
	}
	
	function _loket(){
		echo json_encode($this->m_public_function->_loket());
	}
}